<?php
/**
 * Created by PhpStorm.
 * User: win7
 * Date: 2018/4/27
 * Time: 8:23
 */

// 命名空间
namespace app\api\controller\v2;

class Banner{
    /*
     * 获取指定$id的banner信息
     * $url /banner/:id 访问路由
     * $http get http请求
     * $id banner的id
     */
    public function getBanner($id) {
        return 'this is 2 version';
    }
}